﻿namespace DimensionsHelper.Client.WinUi.Models;

public partial class StringPair : ObservableObject
{
    [ObservableProperty]
    public partial string Key
    {
        get;
        set;
    } = string.Empty;


    [ObservableProperty]
    public partial string Value
    {
        get;
        set;
    } = string.Empty;


    public StringPairCollection? Collection
    {
        get;
        init;
    }


    [RelayCommand]
    private void Delete() => Collection?.Remove(this);
}